package com.itwlj.entity;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * 订单
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class Order implements Serializable {

    private static final long serialVersionUID = 1L;

    //id
    private Long id;

    //用户id
    private Long userId;

    //创建时间
    private LocalDateTime createTime;

    //支付方式
    private String payType;

    //支付渠道
    private String payChannel;

    //备注
    private String buyerMessage;

    //状态
    private Integer orderState;

    //金额合计
    private BigDecimal totalMoney;

    //数量合计
    private Integer totalNum;

    //收货人
    private String receiver;

    //联系方式
    private String receiverContact;

    //详细地址
    private String receiverAddress;

    //支付时间
    private LocalDateTime payTime;

    //支付结果
    private Integer payResult;

    //发货时间
    private LocalDateTime consignTime;

    //完成时间
    private LocalDateTime endTime;

    //关闭时间
    private LocalDateTime closeTime;

    //是否删除
    private Integer isDelete;
}
